// 1、导入request.js请求工具
import request from '@/utils/request.js'

// 获取当前登录用户的未读消息数
export const userUnreadMessageService = () => {
  return request.get('/user/userMessage/getUnreadMessage');
}

// 根据消息类型获取当前登录用户的消息列表
export const userMessageListService = (formData) => {
  return request.get('/user/userMessage/getMessageList', {
    params: formData,
  });
}